-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Debug][Prim][PIR]Codegen for decomp interface implementation #58451
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
c433294
to
56c2874
Compare
336499d
to
514869f
Compare
{%- set output_names=[] -%} | ||
{%- set output_types=[] -%} | ||
std::vector<std::vector<pir::OpResult>> {{class_name}}::Decomp(pir::Operation* op) { | ||
{{class_name}} op_obj = op->dyn_cast<{{class_name}}>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里建议添加一个判断 op_obj 是否为空的检查
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
f.write(content) | ||
|
||
|
||
def filter_compat_info(items): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个函数直接从gen.py中import过来吧
) | ||
|
||
|
||
def extend_compat_info(apis, compats): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
return apis | ||
|
||
|
||
def process_optional_output_info(apis): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
…Paddle#58451) * forward decomp interface code gen * polish code
…Paddle#58451) * forward decomp interface code gen * polish code
PR types
New features
PR changes
Others
Description
Pcard-66975
Codegen for decomp interface implementation in paddle/fluid/pir/dialect/operator/ir/op_decomp.cc